package com.cj.spring;

import com.cj.spring.annotation.ComponentScan;

/**
 * @author chan
 * @dateTime 2022/10/25  17:16:45
 */
@ComponentScan("com.cj.spring")
public class MyApplicationTest {
    public static void main(String[] args) {
        ApplicationContext context = new ApplicationContext(MyApplicationTest.class);
        Object user1 = context.getBean("user");
        Object user2 = context.getBean("user");
        Object user3 = context.getBean("user");
        Object user4 = context.getBean("user");
        System.out.println(user1);
        System.out.println(user2);
        System.out.println(user3);
        System.out.println(user4);
    }
}
